package chenji.gunapi.pluginmessage.event;

import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;

import chenji.gunapi.pluginmessage.OutGunAPIPackage;

public class GunAPIPackageSendEvent implements Cancellable {
	private boolean isCancelled;
	private OutGunAPIPackage e;
	private final Player p;

	public GunAPIPackageSendEvent(Player p, OutGunAPIPackage e) {
		this.p = p;
		this.e = e;
	}

	public Player getPlayer() {
		return this.p;
	}

	public OutGunAPIPackage getPackage() {
		return this.e;
	}

	public void setPackage(OutGunAPIPackage e) {
		this.e = e;
	}

	@Override
	public boolean isCancelled() {
		return this.isCancelled;
	}

	@Override
	public void setCancelled(boolean arg0) {
		this.isCancelled = arg0;
	}

}
